package com.woniuxy.microstockserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microstockserver.bean.EnterStockBean;
import com.woniuxy.microstockserver.bean.EnterStockGoodsDetailBean;
import com.woniuxy.microstockserver.bean.PageRequestBean;

import java.util.List;

/**
 * @author 赵雄伟
 * 入库单service
 */
public interface IEnterStockService {
    /**
     * 分页、分类、模糊查询所有入库单
     * @param pageRequestBean
     * @param enterStockBean
     * @return
     */
    PageInfo<EnterStockBean> findAllEnterStockBean(PageRequestBean pageRequestBean, EnterStockBean enterStockBean);

    /**
     * 新增入库单：含正常入库，销售退货入库，采购入库
     * @param enterStockBean
     * @return
     */
    Long saveEnterStockBean(EnterStockBean enterStockBean);

    /**
     * 根据id查询入库单的详情
     * @param id
     * @return 包含商品信息的入库单
     */
    EnterStockBean findEnterStockAndGoodsDetail(Long id);

    /**
     * 修改入库单
     * @param enterStockBean
     * @return
     */
    Long upadteEnterStockBean(EnterStockBean enterStockBean);
}
